﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Command;
using MSSQL.DBSync.UI.Components.VOS;

namespace MSSQL.DBSync.UI.Components.ManageConn
{
    public interface IManageConnVM
    {
        /// <summary>
        /// 返回
        /// </summary>
        RelayCommand GoBack { get; set; }

        /// <summary>
        /// 修改
        /// </summary>
        RelayCommand SaveConn { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        RelayCommand DeleteConn { get; set; }

        /// <summary>
        /// 添加
        /// </summary>
        RelayCommand AddConn { get; set; }

        /// <summary>
        /// 数据库
        /// </summary>
        ConnObjVO CurConn { get; set; }

        ObservableCollection<ConnObjVO> Conns { get; set; }
    }
}
